package control

import (
	"Sales_system/pkg/app"
	"Sales_system/pkg/e"
	"Sales_system/services"
	"github.com/gin-gonic/gin"
)

func Getbill(c *gin.Context)  {
	err, info, total := services.GetBill()
	if err !=nil{
		app.Error(c,e.ERROR,err,err.Error())
		return
	}
	app.OK(c, map[string]interface{}{"value": info, "total": total},"OK")
}
